import java.util.ArrayList;
import java.util.List;

/**
 * @Author 孤风雪影
 * @Email gitee.com/efairy520
 * @Date 2023/12/5 15:40
 * @Version 1.0
 */
public class ArrayListTest {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add("string" + i);
        }
        list.add("string!!!");
        System.out.println("list = " + list);
    }
}
